package cn.bincker.csustcj.edu.utils;

public class StringUtils {
    public static String cut(String src, String start, String end){
        var index = src.indexOf(start);
        if (index == -1) return "";
        var endIndex = src.indexOf(end, index + start.length());
        if (endIndex == -1) return src.substring(index + start.length());
        return src.substring(index + start.length(), endIndex);
    }

    public static boolean isBlank(String str) {
        return str == null || str.isBlank();
    }

    public static boolean notBlank(String str) {
        return str != null && !str.isBlank();
    }
}
